const Mock = require('mockjs')
let data = Mock.mock({
    "data|10": [{
        "titName": "@ctitle(2)",
        "child|3": ["@cname"]
    }]
})
module.exports = {
    devServer: {
        open: true,
        before(app) {
            app.get('/data', (req, res) => {
                res.send(data.data)
            })
        }
    }
}